Import Custom Functions


In [2]:
import sys
import os
sys.path.append('/mnt/labshare/Programs/python/HelperFunctions/')
from myfunctions import *


Load Data Directory


In [3]:
jpmsample = "051215A-D6"
qubitsample = "CH009"

datapath = '/mnt/labshare/Experiments/JPM/CH009_051215A-D6/'
for p, dirs, files in os.walk(datapath):
    print (p)
    for file in files:
        if file.endswith('.h5'):
            print (os.path.join(p, file))


/mnt/labshare/Experiments/JPM/CH009_051215A-D6/
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160302
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160302/71_CH009_051215A-D6_cavDC_-4.25dBm.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/23_CH009_051215A-D6_fast_amp.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/55_CH009_051215A-D6_Contrast_bright.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/49_CH009_051215A-D6_cav_0dBm.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/64_CH009_051215A-D6_cav.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/35_CH009_051215A-D6_cav_0dBm.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/48_CH009_051215A-D6_cav_0dBm.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/68_CH009_051215A-D6_cavpwr.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/67_CH009_051215A-D6_cavpwr.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/46_CH009_051215A-D6_cav_pwr_fine_ext.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/39_CH009_051215A-D6_Contrast_bright.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/28_CH009_051215A-D6_cav_4.9-5.1.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/20_CH009_051215A-D6_cav.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/18_CH009_051215A-D6_fast_amp.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/45_CH009_051215A-D6_cav_pwr_fine.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/38_CH009_051215A-D6_Contrast_dark.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/43_CH009_051215A-D6_cav_pwr.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/25_CH009_051215A-D6_cav.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/58_CH009_051215A-D6_cav.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/50_CH009_051215A-D6_cav_-10dBm.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/63_CH009_051215A-D6_amp.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/41_CH009_051215A-D6_cav_2000reps_maxcontrast_0dBm.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/60_CH009_051215A-D6_cav.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/53_CH009_051215A-D6_Contrast_bright.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/66_CH009_051215A-D6_cav.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/59_CH009_051215A-D6_cav.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/33_CH009_051215A-D6_amp.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/19_CH009_051215A-D6_fast_amp_fine_2000avg.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/40_CH009_051215A-D6_cav_2000reps_maxcontrast_-5dBm.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/34_CH009_051215A-D6_cav.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/16_CH009_051215A-D6_fast_amp.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/26_CH009_051215A-D6_cav.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/17_CH009_051215A-D6_fast_amp.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/51_CH009_051215A-D6_cav_-20dBm.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/29_CH009_051215A-D6_cav_12dBm.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/70_CH009_051215A-D6_cavpwr_fine_2000reps.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/24_CH009_051215A-D6_fast_amp.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/36_CH009_051215A-D6_cav_pwr.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/54_CH009_051215A-D6_Contrast_dark.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/34_CH009_051215A-D6_cav_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/24_CH009_051215A-D6_fast_amp_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/54_CH009_051215A-D6_Contrast_dark_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/41_CH009_051215A-D6_cav_2000reps_maxcontrast_0dBm_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/58_CH009_051215A-D6_cav_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/68_CH009_051215A-D6_cavpwr_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/64_CH009_051215A-D6_cav_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/36_CH009_051215A-D6_cav_pwr_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/43_CH009_051215A-D6_cav_pwr_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/28_CH009_051215A-D6_cav_4.9-5.1_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/55_CH009_051215A-D6_Contrast_bright_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/63_CH009_051215A-D6_amp_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/70_CH009_051215A-D6_cavpwr_fine_2000reps_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/50_CH009_051215A-D6_cav_-10dBm_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/35_CH009_051215A-D6_cav_0dBm_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/39_CH009_051215A-D6_Contrast_bright_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/29_CH009_051215A-D6_cav_12dBm_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/53_CH009_051215A-D6_Contrast_bright_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/66_CH009_051215A-D6_cav_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/51_CH009_051215A-D6_cav_-20dBm_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/19_CH009_051215A-D6_fast_amp_fine_2000avg_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/60_CH009_051215A-D6_cav_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/40_CH009_051215A-D6_cav_2000reps_maxcontrast_-5dBm_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/16_CH009_051215A-D6_fast_amp_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/26_CH009_051215A-D6_cav_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/33_CH009_051215A-D6_amp_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/48_CH009_051215A-D6_cav_0dBm_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/23_CH009_051215A-D6_fast_amp_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/38_CH009_051215A-D6_Contrast_dark_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/17_CH009_051215A-D6_fast_amp_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/67_CH009_051215A-D6_cavpwr_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/18_CH009_051215A-D6_fast_amp_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/49_CH009_051215A-D6_cav_0dBm_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/25_CH009_051215A-D6_cav_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/46_CH009_051215A-D6_cav_pwr_fine_ext_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/59_CH009_051215A-D6_cav_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160229
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160229/15_CH009_051215A-D6_fast_amp.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160229/2_CH009_051215A-D6_slow.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160229/1_CH009_051215A-D6_slow.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160229/5_CH009_051215A-D6_slow.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160229/7_CH009_051215A-D6_slow.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160229/4_CH009_051215A-D6_slow.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160229/8_CH009_051215A-D6_fast_amp.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160229/3_CH009_051215A-D6_slow.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160229/6_CH009_051215A-D6_slow.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160229/10_CH009_051215A-D6_fast_amp.h5
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160229/5_CH009_051215A-D6_slow_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160229/15_CH009_051215A-D6_fast_amp_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160229/7_CH009_051215A-D6_slow_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160229/8_CH009_051215A-D6_fast_amp_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160229/6_CH009_051215A-D6_slow_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160229/4_CH009_051215A-D6_slow_cfg
/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160229/3_CH009_051215A-D6_slow_cfg

Basic JPM Characterization

Slow Pulse Calibration


In [3]:
file = "/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160229/7_CH009_051215A-D6_slow.h5"
plotCounts(file, samplename=jpmsample+" Slow Pulse Amplitude");


Fast Pulse Calibration

Sitting at $V_{\text{slow}}=0.545$


In [4]:
file = "/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/19_CH009_051215A-D6_fast_amp_fine_2000avg.h5"
plotCounts(file, samplename=jpmsample+" Fast Pulse Amplitude");


Having to use much higher power than I would expect..


In [12]:
file = "/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/34_CH009_051215A-D6_cav.h5"
plotCounts(file, samplename=qubitsample + " at 12dBm RT through " + jpmsample);



In [21]:
file = "/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/35_CH009_051215A-D6_cav_0dBm.h5"
plotCounts(file, samplename=qubitsample + " 0dBm RT through " + jpmsample);



In [4]:
file = "/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/36_CH009_051215A-D6_cav_pwr.h5"
plotCounts(file);


Contrast Calibration


In [11]:
x, brightdata = getH5Data('/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/39_CH009_051215A-D6_Contrast_bright.h5')
x, darkdata = getH5Data('/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/38_CH009_051215A-D6_Contrast_dark.h5')
layout, bright = LinePlot("Bright", x=x, y=brightdata)
layout, dark = LinePlot("Dark", x=x, y=darkdata)
layout, contrast = LinePlot("Contrast", x=x, y=brightdata-darkdata)
iplot(Figure(data=[bright, dark, contrast], layout=layout))


Cavity Power dependence


In [14]:
file = "/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/45_CH009_051215A-D6_cav_pwr_fine.h5"
plotCounts(file);



In [42]:
file = "/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/70_CH009_051215A-D6_cavpwr_fine_2000reps.h5"
data = plotCounts(file, samplename="Cavity Power Scan");



In [11]:


In [46]:
file = "/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/70_CH009_051215A-D6_cavpwr_fine_2000reps.h5"
data = plotCounts(file, samplename="Cavity Power Scan", show=False);
fig, x, y, z = data
for i, power in enumerate(y):
    z[:, i] = z[:, i] - min(z[:, i])
    z[:, i] = z[:, i] / max(z[:, i])
#     z[i, :] = z[i, :]/ max(z[i, :])
    
iplot(Figure(data=[Heatmap(x=y, y=x, z=z)]))


Flux dependence of Cavity

Since a dispersive shift will likely not be noticeable, I am going to try to find a flux dependence first. If I can find a crossing, I can just sit near there to see a much larger dispersive shift.


In [48]:
file = "/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160302/89_CH009_051215A-D6_Cav_DC_-5dBm.h5"
fig, x, y, z = plotCounts(file)
for i, power in enumerate(y):
    z[:, i] = z[:, i] - min(z[:, i])
    z[:, i] = z[:, i] / max(z[:, i])
#     z[i, :] = z[i, :]/ max(z[i, :])
    
iplot(Figure(data=[Heatmap(x=y, y=x, z=z)]))


Upping averages

Going up to 10k reps definitely improved SNR, although now experiments take 10x as long..


In [51]:
file = '/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160302/92_CH009_051215A-D6_Cav_-.8V_-5dBm_10kReps.h5'
plotCounts(file);



In [53]:
file = '/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160302/96_CH009_051215A-D6_Cav_-10dBm.h5'
plotCounts(file);



In [55]:
file = '/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160302/109_CH009_051215A-D6_cav_10.h5'
plotCounts(file);



In [60]:
file = '/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160302/118_CH009_051215A-D6_Spectrum_0dBm.h5'
# plotCounts(file);
tls.embed('plourdelab', 268)


Out[60]:

Contrast search around peak


In [88]:
file = '/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160303/122_CH009_051215A-D6_cav_fastamp_0dBm.h5'
brightdata = plotCounts(file, show=False);
darkfile = '/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160303/123_CH009_051215A-D6_dark_fastamp_0dBm.h5'
darkdata = plotCounts(darkfile, show=False);
dark = darkdata[2]
contrastdata = []

for i, freq in enumerate(brightdata[1]):
    contrastdata.append(brightdata[3][i] - dark)
fig = brightdata[0]
fig['data'][0]['z'] = contrastdata
fig['layout']['title'] = "Contrast at 0dBm"
fig['layout']['xaxis']['title'] = "Fast Pulse Amplitude (Arb. Units)"
fig['layout']['yaxis']['title'] = "Frequency (GHz)"
iplot(brightdata[0])



In [90]:
file='/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160303/127_CH009_051215A-D6_cav_dc_0dBm_zoomed_in.h5'
fig, x, y, z = plotCounts(file)
for i, power in enumerate(y):
    z[:, i] = z[:, i] - min(z[:, i])
    z[:, i] = z[:, i] / max(z[:, i])
#     z[i, :] = z[i, :]/ max(z[i, :])
    
iplot(Figure(data=[Heatmap(x=y, y=x, z=z)]))



In [ ]: